using System;
using System.Collections.Generic;
using System.Text;

namespace ECommerce.Library.ECommerce
{
    public class Utility
    {
        public static string FormatPriceText(double price)
        {
            return "Tk " + price.ToString("0.00");
        }

        public static string FormatPriceText(decimal price)
        {
            return "Tk " + price.ToString("0.00");
        }


        public static string FormatDateTime(DateTime dateTime)
        {
            return dateTime.ToString("MM/dd/yyyy");
        }
        public static string FormatDateTime(DateTime dateTime, char separator)
        {
            return dateTime.ToString("MM" + separator + "dd" + separator + "yyyy");
        }
        public static string FormatPercentage(double price)
        {
            return price.ToString("0.00") + "%";
        }

        public static DateTime FormatDateTime(string p)
        {
            throw new NotImplementedException();
        }
    }
}
